<?php /* Smarty version 2.6.20, created on 2016-07-21 18:55:13
         compiled from order_edit_shipped.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'order_edit_shipped.htm', 22, false),)), $this); ?>
<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/script/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/script/jquery.ui.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/script/Validator.js"></script>
<div class="container">
<div class="oflow" style="height:480px">
<form name="form1" id="form1" action="module.php?m=product&s=order_opear.php&type=edit_shipped&orderid=<?php echo $this->_tpl_vars['de']['order_id']; ?>
" method="post">
<input name="id" type="hidden" id="id" value="<?php echo $this->_tpl_vars['de']['order_id']; ?>
">
<table class="table">
    <thead>
        <tr>
            <th class="partition" colspan="99">订单详情</th>
        </tr>
    </thead>
    <tbody>
    <tr>
        <td width="60">订单编号</td>
        <td colspan="3"><?php echo $this->_tpl_vars['de']['order_id']; ?>
 <b class="org"><?php echo $this->_tpl_vars['de']['order_ship_status']; ?>
</b></td>
    </tr>
    <tr>
        <td>下单时间</td>
        <td colspan="3"><?php echo ((is_array($_tmp=$this->_tpl_vars['de']['create_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d&nbsp;%H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d&nbsp;%H:%M:%S")); ?>
</td>
    </tr>
    <tr>
        <td>配送方式：</td>
        <td width="200"><?php echo $this->_tpl_vars['de']['shipping_name']; ?>
</td>
        <td width="60">配送费用:</td>
        <td><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['de']['freight']; ?>
</td>
    </tr>
    
     <tr>
        <td>物流公司</td>
        <td colspan="3">
        <input type="hidden" name="shipping_express_id_old" value="<?php echo $this->_tpl_vars['de']['shipping_express_id']; ?>
"/>
        <select name="shipping_express_id" dataType="Require" msg="请选择物流公司">
        <option value="">--请选择--</option>
         <?php $_from = $this->_tpl_vars['shipping_express']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
            <option value="<?php echo $this->_tpl_vars['item']['id']; ?>
_<?php echo $this->_tpl_vars['item']['company']; ?>
" <?php if ($this->_tpl_vars['item']['id'] == $this->_tpl_vars['de']['shipping_express_id']): ?>selected="selected"<?php endif; ?>>
            <?php echo $this->_tpl_vars['item']['company']; ?>

            </option>
        <?php endforeach; endif; unset($_from); ?>
        </select>
        </td>
    </tr>
    <tr>
        <td>物流单号</td>
        <td colspan="3"><input type="hidden" name="shipping_no_old" id="shipping_no_old" value="<?php echo $this->_tpl_vars['de']['shipping_no']; ?>
" /><input type="text" name="shipping_no" id="shipping_no" dataType="Require" msg="不能为空" class="w350" value="<?php echo $this->_tpl_vars['de']['shipping_no']; ?>
" /></td>
    </tr>
    <tr>
        <td>实际重量</td>
        <td colspan="3"><input type="text" name="shipping_weight" dataType="Double" msg="格式不正确" class="w350" value="<?php echo $this->_tpl_vars['de']['shipping_weight']; ?>
" />&nbsp;&nbsp;kg</td>
    </tr>
    <tr>
        <td>实际运费</td>
        <td colspan="3"><input type="text" name="shipping_freight" dataType="Double" msg="格式不正确" class="w350" value="<?php echo $this->_tpl_vars['de']['shipping_freight']; ?>
" /></td>
    </tr>
    <tr>
        <td>收货人</td>
        <td colspan="3">
        <input type="text" name="ship_name" id="ship_name" dataType="Require" msg="收货人不能为空" class="w350" value="<?php echo $this->_tpl_vars['de']['ship_name']; ?>
" />
        </td>
    </tr>
    <tr>
        <td>联系电话</td>
        <td colspan="3">
        <input type="text" name="ship_mobile" id="ship_mobile" dataType="Require" msg="联系电话不能为空" class="w350" value="<?php echo $this->_tpl_vars['de']['ship_mobile']; ?>
" />
        </td>
    </tr>
    <tr>
        <td>身份证号</td>
        <td colspan="3">
        <input type="text" name="shipping_idcard" id="shipping_idcard" dataType="Require" msg="身份证号不能为空" class="w350" value="<?php echo $this->_tpl_vars['de']['shipping_idcard']; ?>
" />
        </td>
    </tr>    
    <tr>
        <td>收货地址</td>
        <td colspan="3">
        <input type="text" name="ship_addr" id="ship_addr" dataType="Require" msg="收货地址不能为空" class="w350" value="<?php echo $this->_tpl_vars['de']['ship_addr']; ?>
" />
        </td>
    </tr>
    </tbody>
</table>
<div class="dialog_button">
	<input id="save" type="button" value="保存">
	<input name="act" type="hidden" id="action" value="edit_shipped"> 
	<input id="close" type="button" value="关闭">
</div>
</form>
<div id="error"></div> 
<script>
function $$(id) {
    return !id ? null : document.getElementById(id);
}
function ajaxpost(formid) {
    var ajaxframeid = 'ajaxframe';
    var ajaxframe = $$(ajaxframeid);
    if(!ajaxframe){
        var div = document.createElement('div');
        div.style.display = 'none';
        div.innerHTML = '<iframe name="' + ajaxframeid + '" id="' + ajaxframeid + '" loading="1"></iframe>';
        ajaxframe = $$(ajaxframeid);
        $$('append_parent').appendChild(div);
    }
    $$(formid).target = ajaxframeid;
    var valid = Validator.Validate($$(formid),3);
    if(!valid){
        return;
    }
    $$(formid).submit();
    window.parent.main.document.location.reload();
    setTimeout("DialogManager.close('order')",500);
}
$("#save").click(function () {
    ajaxpost("form1");
    return false;
});
$("#close").click(function () {
    window.parent.main.document.location.reload();
    DialogManager.close("order");
});
</script>
</form>
</div>
</div>